package com.example.chapter12.srp.used;

import com.example.chapter12.srp.unused.Course;

import java.util.ArrayList;
import java.util.List;

public class CourseManageImpl implements Operation {
    private static List list = new ArrayList();

    @Override
    public void add(Course course) {
        list.add(course);
    }

    @Override
    public void update(Course course) {
        list.remove(course);
        list.add(course);
    }

    @Override
    public void delete(Course course) {

    }

    @Override
    public void query(Course course) {

    }
}
